//
//  AppDelegate.m
//  13KModel
//
//  Created by jack on 27/08/12.
//  Copyright (c) 2012 butterfly. All rights reserved.
//
// CLASS INCLUDES
#import "EasyTracker.h"
#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [NSThread sleepForTimeInterval:3.0f];
    // Tracker日志
    [EasyTracker launchWithOptions:launchOptions
                    withParameters:nil
                         withError:nil];
    return YES;
}
							
- (void)applicationWillResignActive:(UIApplication *)application
{
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
}

- (void)applicationWillTerminate:(UIApplication *)application
{
}

#pragma mark- GANTrackerDelegate
- (void)hitDispatched:(NSString *)hitString
{
    NSLog(@"hit dispatch %@", hitString);
}

- (void)trackerDispatchDidComplete:(GANTracker *)tracker eventsDispatched:(NSUInteger)hitsDispatched eventsFailedDispatch:(NSUInteger)hitsFailedDispatch
{
    NSLog(@"trackerDispatchDidComplete");
}

@end
